<?php
	!defined('DYHB_PATH') && exit;
	class InitController extends Controller{
		public function init__(){
			parent::init__();
			define('ENCODE','yming455625551');
			$arrUserData=Dyhb::cookie('user_login');
			if(empty($arrUserData['user_id'])){
				$GLOBALS['___login___']=false;
			}else{
				$GLOBALS['___login___']=$arrUserData;
			}
			$GLOBALS['___config___']=Dyhb::cache("option",'',array('cache_path'=>getcwd().'/data/~runtime/cache_'));
			//G::dump($GLOBALS);
		}
		public function is_login(){
			if($GLOBALS['___login___']==false){
				return false;
			}
			return true;
		}
	}